//This is a comment by Abhijit Gali
//This is a comment by Hareesh Chembolu
//This is a comment by Sameer Mohammed
//This is a comment by Shilpa Casula
//This is a comment by RaviTeja Potluri
//This is a comment by Bhargavi Gedala
//This is a comment by Todd Bailey
//This is a comment by Kamal Kaur
//This is a comment by Ajay kumar chejarla
//This is a comment by Rakesh Bunga
//This is a comment by Deepthi Sriperumbuduri
//This is a comment by Swetha Tabjul
//This is a commment by Preeti Loomba.Handled one more scenario in triangle.java
//Made another commit and removed condition as it was already handled by Ajay
//This is a comment by Amale Salem
//This is a comment by Sree Vindhya Nagandla
//This is a comment by Upasna Singh
//This is a comment by Bhargavi Rayavarapu
//This is a comment by Bavita Vallabhaneni
//This is a comment by Prathyusha Takkillapati
//This is a comment by Shilpa Kotagiri
//This is a comment by Kaiser Mohammed
//This is a comment by Anusha Kumari Gadam
//This is a comment by Manikandan Ganesan
//This is a comment by Suraj Murali
//This is a comment by Satyaveer Surabhi
//This is a comment by Chris Rowland
//This is a comment by Dilip Jayavelu
//This is a comment by Christa Petryszyn


package junit.samples.triangle;

public class Triangle {

	private int a, b, c;
    //This is a comment by Jonathan Durda
	/**
	 * Constructs a triangle from the three given edges.
	 */
	public Triangle(int side1, int side2, int side3) {
		a = side1;
		b = side2;
		c = side3;
	}

	/**
	 * Decide the type of triangle.
	 * Return a string of
	 * "Equilateral", if all three sides are the same;
	 * "Isosceles", if two sides are the same, but not the third;
	 * "Scalene", if none of the side is the same as another;
	 * "Not a triangle", if the three sides cannot form a triangle;
	 */
	public String triangleType(){
		if (isTriangle())
			if (a == b)
				if (b == c)
					return("Equalateral");
				else return("Isosceles");
			else if (a == c)
                                 return("Isosceles");
	     else if (b == c)
				 return("Isosceles");
			else return("Scalene");
		else
			return("Not a Triangle");
	}
	/**
	 * Does the three edges form a triangle?
	 */

	private boolean isTriangle() {
		return ((a > 0) && (b > 0) && (c > 0) && (a+b > c) && (a+c > b) && (b+c > a));
	}
}